﻿namespace Blaze.UI
{
    using UnityEngine.UI;

    /// <summary>
    /// 用于屏蔽点击事件的组件。
    /// </summary>
    public class RaycastBlocker : Graphic
    {
        protected RaycastBlocker()
        {
            useLegacyMeshGeneration = false;
        }

        protected override void OnPopulateMesh(VertexHelper vh)
        {
            vh.Clear();
        }
    }
}